/*
 * @Author: sy
 * @Date: 2021-11-29 10:05:06
 * @LastEditTime: 2023-07-18 10:56:32
 * @Description: file content
 */
import layoutHeaderAside from "@/layout/header-aside";

// 由于懒加载页面太多的话会造成webpack热更新太慢，所以开发环境不使用懒加载，只有生产环境使用懒加载
const _import = require("@/libs/util.import." + process.env.NODE_ENV);

const meta = { auth: true, cache: true };

export default {
  path: "/:menuCode/:menuId/information",
  name: "information-components",
  meta: { ...meta, level: 0 },
  // redirect: { name: "centralized-plans-planList" },
  component: layoutHeaderAside,
  children: [
    {
      path: "steelWeekly/architecture",
      name: "information-steelWeekly-architecture",
      component: _import("information/steelWeekly/architecture.vue"),
      meta: { ...meta, title: "建筑钢材周报" }
    },
    {
      path: "dayStock/index",
      name: "information-dayStock-list",
      component: _import("information/dayStock/index.vue"),
      meta: { ...meta, title: "每日库存" }
    },
    {
      path: "dayStock/history",
      name: "information-dayStock-history",
      component: _import("information/dayStock/history.vue"),
      meta: { ...meta, title: "库存日汇总报表" }
    },
    {
      path: "dayStock/add",
      name: "information-dayStock-add",
      component: _import("information/dayStock/add.vue"),
      meta: { ...meta, title: "每日库存-新增" }
    },
    {
      path: "dayStock/modify/:date/:province/:city",
      name: "information-dayStock-modify",
      component: _import("information/dayStock/modify.vue"),
      meta: { ...meta, title: "每日库存-修改" }
    },
    {
      path: "voteCheck/index",
      name: "information-voteCheck-list",
      component: _import("information/voteCheck/index.vue"),
      meta: { ...meta, title: "投票考核名单" }
    },
  ]
};
